package AnimalTest;

public class BossiCat extends Cat {

    public BossiCat() {
    }

    public BossiCat(String name, int age) {
        super(name, age);
    }


    @Override
    public void eat(){
        System.out.println("一只叫做"+super.getName()+","+super.getAge()+"岁的波斯猫在吃小饼干");
    }

    @Override
    public String toString() {
        return "名字是"+getName()+",年龄为"+getAge()+"岁的波斯白猫";
    }
}
